<%--
  Created by IntelliJ IDEA.
  User: lirance
  Date: 15/5/18
  Time: 上午12:22
  To change this template use File | Settings | File Templates.
  用户信息管理 显示用户信息、修改用户信息（）
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>用户信息管理</title>
  <link rel="stylesheet" href="css/userInfo.css">
  <script>


    function check(){

      if(document.getElementById("newPassword").value!= document.getElementById("repassword").value)
      {
        alert("两次密码不一样");
      }
    }

  </script>
  <style type="text/css">

    a:link {

      text-decoration:none;
    }
    a:visited {

      text-decoration:none;
    }
    a:hover {

      text-decoration:underline;
    }
    a:active {

      text-decoration:none;
    }
  </style>
</head>
<body>

<div id="head">


  <img id="logo-style" src="images/logomini.png" width="70" height="70" />
  <span  id="headstyle"> Drrr chat room</span>
  <div class="navigation">
    <a href="userProfile.jsp"><img id="touxiang-position" src="images/TouXiang/1.png" width="45" height="45"/></a>
    <span id="usernamestyle">${sessionScope.user.username}</span>
    <span id="span-style">|</span>
    <a href="login.jsp"><span id="spanexitstyle">exit</span></a>
  </div>

</div>


<div id="text" >
  <div class="basic-grey">
    <form action="ChagUserProfile" method="post" onclick="check()" >
      <h1>个人信息
        <span>正确填写你的信息(⊙o⊙)哦</span>
      </h1>
      <label>
        <span>昵称:</span>
        <input id="name" type="text" name="username" placeholder="写入正确的名字哟" />
      </label>
      <label>
        <span>邮箱:</span>
        <input id="email" type="email" name="email" placeholder="写入正确的email" />
      </label>
      <label>
        <span>以前的密码:</span>
        <input id="oldPassword" type="password" name="password" placeholder="真的是你的账号嘛" />
      </label>
      <label>
        <span>新密码:</span>
        <input id="password" type="password" name="newPassword" placeholder="不要太简单的会被盗的说" />
      </label>
      <label>
        <span>确认密码:</span>
        <input id="repassword" type="password" name="repassword" placeholder="不会这么快就忘了..快去吃药" />
      </label>
      <label><span>&nbsp;</span>
        <input type="submit" class="button" value="修改" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="reset" class="button1" value="撤销" />
      </label>
    </form>


  </div>


</div>






</body>
</html>
